package com.gitee.kenewstar.migration.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.util.Objects;

/**
 * @author kenewstar
 */
@Data
public class CommonDto {

    @TableField(exist = false)
    @ExcelProperty("数据编码")
    private String migrationCode;

    @TableField(exist = false)
    @ExcelProperty("数据租户ID")
    private Long migrationTenantId;

    @TableField(exist = false)
    @ExcelProperty("是否完成")
    private String completeFlag;

    public Boolean completeFilter() {
        return !Objects.equals(completeFlag, "Y");
    }

}
